#include "task.h"
#include "scheduler.h"
#include "slave.h"
#include "cas_keep.h"
int ref_count(struct task* self) 
{  
    return self->ref_count_t;
}


/*int is_stolen_task(struct task* self)
{
    return (self->extra_state) & 0x80;
}*/

#ifdef CONCURRENT_CONSTRUCT_GRAPH
/*
inline void set_pre(struct task* self,int p)
{
    self->pre = p;
}
inline int pre_count(struct task* self)
{
    return self->pre;
}
*/
#endif


void spawn(struct task* t)
{
   slave_spawn_to_id(t);
}






